package com.geekaca.oop;

public class TestNullArr {
    public static void main(String[] args) {
        int[] arr1 = null;
        change(arr1);
    }

    public static void change(int[] arr) {
        if (arr.length == 0) {
            System.out.println("长度为0");
        }
        if (arr == null) {
            System.out.println("null");
        }
    }
}
